package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文物信息对象 app_artifact
 * 
 * @author ruoyi
 * @date 2024-10-29
 */
public class AppArtifact extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文物的唯一标识符 */
    private Long artifactId;

    /** 文物的名称 */
    @Excel(name = "文物的名称")
    private String artifactName;

    /** 文物的详细描述 */
    private String description;

    /** 文物的分类 */
    @Excel(name = "文物的分类")
    private String category;

    /** 文物所属的年代 */
    @Excel(name = "文物所属的年代")
    private String period;

    /** 文物的发现地 */
    @Excel(name = "文物的发现地")
    private String origin;

    /** 文物的尺寸 */
    @Excel(name = "文物的尺寸")
    private String dimensions;

    /** 文物的重量 */
    @Excel(name = "文物的重量")
    private BigDecimal weight;

    /** 文物的主要材质 */
    @Excel(name = "文物的主要材质")
    private String material;

    /** 文物的入库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "文物的入库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date acquisitionDate;

    /** 文物照片地址 */
    @Excel(name = "文物照片地址")
    private String photoUrl;

    //当前用户已收藏的id
    private Long favoriteId;

    public Long getFavoriteId() {
		return favoriteId;
	}

    public void setFavoriteId(Long favoriteId) {
		this.favoriteId = favoriteId;
	}

    public void setArtifactId(Long artifactId) 
    {
        this.artifactId = artifactId;
    }

    public Long getArtifactId() 
    {
        return artifactId;
    }
    public void setArtifactName(String artifactName) 
    {
        this.artifactName = artifactName;
    }

    public String getArtifactName() 
    {
        return artifactName;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setPeriod(String period) 
    {
        this.period = period;
    }

    public String getPeriod() 
    {
        return period;
    }
    public void setOrigin(String origin) 
    {
        this.origin = origin;
    }

    public String getOrigin() 
    {
        return origin;
    }
    public void setDimensions(String dimensions) 
    {
        this.dimensions = dimensions;
    }

    public String getDimensions() 
    {
        return dimensions;
    }
    public void setWeight(BigDecimal weight) 
    {
        this.weight = weight;
    }

    public BigDecimal getWeight() 
    {
        return weight;
    }
    public void setMaterial(String material) 
    {
        this.material = material;
    }

    public String getMaterial() 
    {
        return material;
    }
    public void setAcquisitionDate(Date acquisitionDate) 
    {
        this.acquisitionDate = acquisitionDate;
    }

    public Date getAcquisitionDate() 
    {
        return acquisitionDate;
    }
    public void setPhotoUrl(String photoUrl) 
    {
        this.photoUrl = photoUrl;
    }

    public String getPhotoUrl() 
    {
        return photoUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("artifactId", getArtifactId())
            .append("artifactName", getArtifactName())
            .append("description", getDescription())
            .append("category", getCategory())
            .append("period", getPeriod())
            .append("origin", getOrigin())
            .append("dimensions", getDimensions())
            .append("weight", getWeight())
            .append("material", getMaterial())
            .append("acquisitionDate", getAcquisitionDate())
            .append("photoUrl", getPhotoUrl())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
